/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/24 17:10:51
 */
Ext.define('Monkey.model.permission.Permission', {
    extend: 'Monkey.model.BaseModel',
    fields: [
        {name: 'name'},
        {name: 'permission'},
        {name: 'description'},
        {
            name: 'display', type: 'string',
            mapping: function (data) {
                return data.name + '(' + data.permission + ')';
            }
        },
        {name: 'id', type: 'int'}
    ]
});